<?php

namespace App\Http\Controllers\Home;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Shortlinksh5;
use Log,Exception;

class ShortlinkController extends Controller
{
    public function linkhtml5(Request $request,$links_id)
    {
        $link = Shortlinksh5::shortLinksH5Detial($links_id);
        if ($link->status == 1) {
            return view("shorts.html5",["link"=>$link]);
        } else {
            return redirect()->away($link->link);
        }
    }
}
